package ru.spbu.mm.diploma.common.entity;

import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by IntelliJ IDEA.
 * User: Ksushenka
 * Date: 29.10.11
 * Time: 18:14
 * To change this template use File | Settings | File Templates.
 */
@NamedQueries({
	@NamedQuery(
	name = "findRiskGroupByName",
	query = "from RiskGroup r where r.name=:groupName"
	)
})
@Entity
public class RiskGroup {
    private Integer id;
    private String name;
    private String description;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
